#ifndef SHA256_H
#define SHA256_H

//#include <stddef.h>

typedef struct
{
    uint8_t     hash[32];
    uint32_t    buffer[16];
    uint32_t    state[8];
    uint8_t     length[8];
}sha256;

extern void sha256_get(uint8_t hash[32],
                const uint8_t *message,
                int length);

extern void hmac_sha256_get(uint8_t digest[32],
                     uint8_t *message, int message_length,
                     uint8_t *key, int key_length);

char *Encrypted_Header(char * rand_in);
#endif